<template>
  <view>
    <pagehead>{{title}}</pagehead>
    <view class="content" v-html="content">
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      title:'平台协议详情',
      content: '平台协议详情'
    };
  },
  onLoad(options) {
    if (options) {
      this.id = options.value1
      this.title = options.value2
      this.contract_type = '0'+this.id
      this.getSysContractByType()
    }
  },
  methods: {
    // 查询系统协议
    getSysContractByType() {
      let that = this;
      const data={
        contract_type:this.contract_type
      }
      that.$Ajax('/api/system/contract/getSysContractByType', data, res => {
        if(res.success){
          that.content = res.data.sysContract? res.data.sysContract.contract_content : '';
        }
      }, err => {})
    },
  },
};
</script>

<style lang="scss" scoped>
.content {
  padding: 40rpx 20rpx;
}

image,
img,
video {
  max-width: 100%;
}
</style>
